package com.api.shopapi.service;


import com.api.shopapi.entity.Complaint;
import com.api.shopapi.entity.dto.ComplaintDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author maochuan
 */
@Service
public interface ComplaintService {

    int insert(Complaint complaint);

    int update(Complaint complaint);

    PageInfo<ComplaintDTO> getPageList(int pageIndex,
                                       int pageSize,

                                       String governmentCode,
                                       int status,
                                       int type,
                                       Date startTime,
                                       Date endTime);

    ComplaintDTO getByComplaintCode(String complaintCode);
}
